a = input('a=')
a = int(a)
b = input('b=')
b = int(b)
c = 0
while a<=b:
    d = c+a
    print(c,'+',a,'=',d)
    a = a+1
    c = d
print('sum =',d)